#define NOMINMAX
#include <windows.h>

#include "CApplication.h"

IApplication *CreateApplication(HINSTANCE hInst, LPSTR lpCmdLine, int nCmdShow);

int _stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	IApplication *_pApplication = CreateApplication(hInstance, lpCmdLine, nCmdShow);

	_pApplication->Run();

	return 0;
};

IApplication *CreateApplication(HINSTANCE hInst, LPSTR lpCmdLine, int nCmdShow)
{
	return new CApplication();
};